<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="zh-CN" xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>API文档</title>
    <link rel="stylesheet" href="/Public/Api/css/channel.css" type="text/css" media="screen">
</head>

<body>
<div id="OSC_Banner">
    <div class="wp998">
        <h1>API 文档</h1>
        <div class="clear"></div>
    </div>
</div>
<div id="OSC_Screen">
    <div id="OSC_Content" class="CenterDiv">
        <include file="Doc/public/menu" />
        <div class="context">
            <h2 class="url">{$api.title} <a href="{:U('doc/index')}" style="float:right; margin-right:10px; text-decoration: none; font-size:15px;">API首页</a></h2>
            <hr>
            <div class="title">{$api.name}</div>
            <div class="desc">{$api.desc}</div>
            <div class="title">支持格式</div>
            <div class="desc">HTTP Request</div>
            <div class="title">HTTP请求方式</div>
            <div class="desc">{$method}</div>
            <div class="title">是否需要授权</div>
            <div class="desc">{$auth}</div>
            <div class="title">授权范围(scope)</div>
            <div class="desc">暂无</div>
            <notempty name="params">
            <div class="title">请求参数</div>
            <div class="return">
                <table style="border-collapse:collapse;border: 1px solid #dee7e6;" cellspacing="0" bordercolor="#dee7e6" border="1">
                    <tbody>
                    <tr>
                        <th width="120px">参数</th>
                        <th width="80px">必选</th>
                        <th width="100px">类型</th>
                        <th width="450px">说明</th>
                        <th width="71px">默认值</th>
                    </tr>
                    <volist name="params" id="rs">
                    <tr>
                        <td style="font-weight:bold;">{$rs.param}</td>
                        <td <if condition="$rs['must'] eq 'true'">style="color:#f00;"</if>>{$rs.must}</td>
                        <td>{$rs.type}</td>
                        <td>{$rs.desc}</td>
                        <td>{$rs.default}&nbsp;</td>
                    </tr>
                    </volist>
                    </tbody>
                </table>
            </div>
            </notempty>
            <div class="title">请求示例</div>
            <div class="desc">
                {$example}
            </div>
            <div class="title">返回结果</div>
            <div class="return">
                <div class="returnType">JSON数据结构</div>
                <div class="title">返回字段说明</div>
                <div class="return">
                    <table style="border-collapse:collapse;border: 1px solid #dee7e6;" cellspacing="0" bordercolor="#dee7e6" border="1">
                        <tbody>
                        <tr>
                            <th width="91px">返回值字段</th>
                            <th width="700px">说明</th>
                        </tr>
                        <tr>
                            <td>errno</td>
                            <td>{$return.errno}</td>
                        </tr>
                        <tr>
                            <td>errmsg</td>
                            <td>{$return.errmsg}</td>
                        </tr>
                        <tr>
                            <td>data</td>
                            <td>{$return.data}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>
</body>
</html>